package Action;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;

import Utils.SendSMSHelper;

public class indexAction {

	private float smsBalance;
	
	public String execute(){
		smsBalance=SendSMSHelper.getBalance();
		return "success";
	}
	
	public String logout(){
		ActionContext actionContext = ActionContext.getContext();
		Map<String, Object> session = actionContext.getSession();
		session.clear();
		return "logout";
	}

	public float getSmsBalance() {
		return smsBalance;
	}

	public void setSmsBalance(float smsBalance) {
		this.smsBalance = smsBalance;
	}
	
}
